<!doctype html>
<html>
<head>
<template source='TPL:admin.common.head' />
</head>
<body>
<div class="wrap J_check_wrap">
	<div class="nav">
		<ul class="cc">
			<li class="current"><a href="{@url:bbs/article/run}">帖子管理</a></li>
			<li><a href="{@url:bbs/article/replylist}">回复管理</a></li>
		</ul>
	</div>
	
	<div class="h_a">功能说明</div>
	<div class="prompt_text">
		<ol>
			<li>删除符合条件的帖子用于清理站点冗余数据，此操作不可恢复，请谨慎使用。</li>
			<li>删除主题功能可删除某个会员发布的所有主题(包括回复)，删除回复功能可删除某个会员发表的所有回复。</li>
			<li>搜索支持通配符“*”，多个用户名之间用英文半角逗号","分割。</li>
		</ol>
	</div>
	<div class="h_a">搜索</div>
	<!--# $checkedDigest = $args['digest'] ? 'checked=checked' : '' #-->
	<form method="post" action="{@url:bbs/article/searchthread}">
	<div class="search_type cc mb10">
		<div class="ul_wrap">
			<ul class="cc">
				<li>
					<label>关键字：</label><input name="keyword" value="{$args['keyword']}" type="text" class="input length_3" placeholder="支持帖子标题和正文搜索">
				</li>
				<li>
					<label>作者：</label><input name="created_username" value="{$args['created_username']}" type="text" class="input length_3">
				</li>
				<li>
					<label>所属版块：</label><select name="fid" class="select_3"><option value="0">所有版块</option>{@$option_html|html}</select>
				</li>
				<li>
					<label>发帖时间：</label><input type="text" name="time_start" class="input length_2 mr5 J_date"><span class="mr5">至</span><input type="text" name="time_end" class="input length_2 J_date">
				</li>
			</ul>
		</div>
		<div class="btn_side">
			<button class="btn mr20" type="submit">搜索</button><a class="mr20 J_dialog" href="{@url:bbs/article/threadadvanced}" title="高级搜索">高级搜索</a><label class="w" style="display:none"><input type="checkbox" name="digest" value="1" {$checkedDigest}>过滤精华</label>
		</div>
	</div>
	</form>
	
	<form class="J_ajaxForm" action="{@url:bbs/article/deletethread}" method="post">
				<!--# if ($threads) { #-->
		<div class="table_list">
			<table width="100%">
				<colgroup>
					<col width="60">
					<col width="300">
				</colgroup>
				<thead>
					<tr>
						<td><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x">全选</label></td>
						<td>标题</td>
						<td>作者</td>
						<td>IP</td>
						<td>版块</td>
						<td><span>发帖时间</span></td>
						<td>回复/查看</td>
					</tr>
				</thead>
				<!--# foreach ($threads as $v) { 
				$v['created_time'] = Pw::time2str($v['created_time']);
				$v['content'] = Pw::substrs($v['subject'], 20);
				$_forumSubject = strip_tags($forumList[$v['fid']]['name']);
				#-->
				<tr>
					<td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="tids[]" value="{$v['tid']}"></td>
					<td><a href="{@url:bbs/read/run?tid=$v['tid']&fid=$v['fid']|pw}" target="_blank">{$v['subject']}</a></td>
					<td><a href="{@url:space/index/run?uid=$v['created_userid']|pw}" target="_blank">{$v['created_username']}</a></td>
					<td>{$v['created_ip']}</td>
					<td><a href="{@url:bbs/thread/run?fid=$v['fid']|pw}" target="_blank">{$_forumSubject}</a></td>
					<td>{$v['created_time']}</td>
					<td>{$v['replies']}/{$v['hits']}</td>
				</tr>
				<!--# } #-->
			</table>
			<div class="p10">
				<page tpl='TPL:common.page' page='$page' count='$count' per='$perpage' url='bbs/article/searchthread' args='$args'/>
			</div>
		</div>
				<!--# } else { #-->
				<div class="not_content_mini"><i></i>啊哦，没有符合条件的内容！</div>
				<!--# } #-->

		<!--# if ($threads) { #-->
		<div class="btn_wrap">
			<div class="btn_wrap_pd">
				<div class="select_pages">
				<!--# 
					$urlargs = '';
					foreach ($args as $k => $v) {
						if ($k == 'perpage') continue;
						$urlargs .= "&$k=$v";
					}
				 #-->
					<a href="{@WindUrlHelper::createUrl('bbs/article/searchthread?perpage=20', $args)}">20</a><span>|</span>
					<a href="{@WindUrlHelper::createUrl('bbs/article/searchthread?perpage=50', $args)}">50</a><span>|</span>
					<a href="{@WindUrlHelper::createUrl('bbs/article/searchthread?perpage=100', $args)}">100</a>
				</div>
				<label class="mr20"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label>
				<button class="btn J_ajax_submit_btn" type="submit">删除</button>
				<button class="btn btn_submit J_ajax_submit_btn" type="submit" data-action="{@url:bbs/article/deletethread?isDeductCredit=1}">删除并扣除积分</button>
			</div>
		</div>
		<!--# } #-->
	</form>
</div>

<template source='TPL:admin.common.footer' />
</body>
</html>